export default {
  data () {
    return {
      gridItemTwoData: {
        radarName: '行业影响力',
        radarData: [],
        radarIndicator: [],
      },
    }
  },
  methods: {
    handlerIndustryTableRowClick (data, total, columns) {
      // console.log(data, total, columns);
      this.gridItemTwoData.radarIndicator = [
        ...columns.filter(item => item.prop !== 'industryName')
          .map(item => ({
            name: item.label
          }))
      ];
      this.gridItemTwoData.radarData = [
        ...columns.filter(item => item.prop !== 'industryName')
          .map(item => data[item.prop])
      ];
      const t = (data.industryName || '');
      this.gridItemTwoData.radarName = (t ? t + ' - ' : '') + '行业影响力';
    }
  },
}
